package com.myhome.money.base.designpattern.factory.demo;

/**
 * @Author: 许路路
 * @Date: 2019/11/7
 */
public class Client {
    private INoType noType;

    public Client(INoType noType) {
        this.noType = noType;
    }

    private String getNo() {
        return noType.getNoType().createNo();
    }

    public static void main(String[] args) {
        Client client = new Client(new BillNo());
        System.out.println(client.getNo());
    }

}
